<include file="Public/header" title="更新房源" />
<div id="page-wrapper">
    <form method="post" action="{:U('rent/update',array('id'=>$rent['id']))}"  enctype="multipart/form-data">

        <h2>基本信息</h2>
    <!-- 标题 -->
        <div class="form-group  row">
            <label class="col-sm-1">房源标题</label>
			 <div class="col-sm-11">
            <input type="text" name="title" placeholder="房源标题"  value="{$rent['title']}" class="form-control"  />
            </div> 
		</div> 
    <!-- 房源编号 -->
        <div class="form-group  row">
            <label class="col-sm-1">房源编号</label>
			 <div class="col-sm-11">
            <input type="hidden" name="bianhao" placeholder="房源编号" value="{$rent['bianhao']}" />{$rent['bianhao']}
            </div> 
		</div> 
    <!-- 区域 -->
        <div class="form-group row">
            <label class="col-sm-1">房屋区域</label>
            <div class="col-sm-11">
			<if condition="$rent['area'] eq '沙河口区' " >
            <input type="radio" name="area" value="沙河口区" style="display:inline-block;margin-left:20px;" checked="checked"/>沙河口区
			<else />
            <input type="radio" name="area" value="沙河口区" style="display:inline-block;margin-left:20px;"/>沙河口区
			</if>
			
			<if condition="$rent['area'] eq '西岗区' " >
            <input type="radio" name="area" value="西岗区" style="display:inline-block;margin-left:20px;" checked="checked"/>西岗区
			<else />
            <input type="radio" name="area" value="西岗区" style="display:inline-block;margin-left:20px;"/>西岗区
			</if>
			
			<if condition="$rent['area'] eq '中山区' " >
            <input type="radio" name="area" value="中山区" style="display:inline-block;margin-left:20px;" checked="checked"/>中山区
			<else />
            <input type="radio" name="area" value="中山区" style="display:inline-block;margin-left:20px;"/>中山区
			</if>
			
			<if condition="$rent['area'] eq '甘井子区' " >
            <input type="radio" name="area" value="甘井子区" style="display:inline-block;margin-left:20px;" checked="checked"/>甘井子区
			<else />
            <input type="radio" name="area" value="甘井子区" style="display:inline-block;margin-left:20px;"/>甘井子区
			</if>
			
			<if condition="$rent['area'] eq '高新园区' " >
            <input type="radio" name="area" value="高新园区" style="display:inline-block;margin-left:20px;" checked="checked"/>高新园区
			<else />
            <input type="radio" name="area" value="高新园区" style="display:inline-block;margin-left:20px;"/>高新园区
			</if>                   
            </div>
        </div>
		
    <!-- 详细地址 -->
        <div class="form-group  row">
            <label class="col-sm-1">详细地址</label>
			 <div class="col-sm-11">
            <input type="text" name="dizhi" placeholder="详细地址" value="{$rent['dizhi']}" class="form-control"  />
            </div> 
		</div> 
    <!-- 所属小区 -->
        <div class="form-group  row">
            <label class="col-sm-1">所属小区</label>
			 <div class="col-sm-11">
            <input type="text" name="xiaoqu" placeholder="所属小区" value="{$rent['xiaoqu']}" class="form-control"  />
            </div> 
		</div> 
    <!-- 地铁 -->
        <div class="form-group row">
            <label class="col-sm-1">附近地铁</label>
            <div class="col-sm-11">
			<if condition="$rent['tube'] eq '地铁一号线' " >
            <input type="radio" name="tube" value="地铁一号线" style="display:inline-block;margin-left:20px;" checked="checked"/>地铁一号线
			<else />
            <input type="radio" name="tube" value="地铁一号线" style="display:inline-block;margin-left:20px;"/>地铁一号线
			</if>
			<if condition="$rent['tube'] eq '地铁二号线' " >
            <input type="radio" name="tube" value="地铁二号线" style="display:inline-block;margin-left:20px;" checked="checked"/>地铁二号线
			<else />
            <input type="radio" name="tube" value="地铁二号线" style="display:inline-block;margin-left:20px;"/>地铁二号线
			</if> 
			<if condition="$rent['tube'] eq '地铁三号线' " >
            <input type="radio" name="tube" value="地铁三号线" style="display:inline-block;margin-left:20px;" checked="checked"/>地铁三号线
			<else />
            <input type="radio" name="tube" value="地铁三号线" style="display:inline-block;margin-left:20px;"/>地铁三号线
			</if>  
			<if condition="$rent['tube'] eq '地铁四号线' " >
            <input type="radio" name="tube" value="地铁四号线" style="display:inline-block;margin-left:20px;" checked="checked"/>地铁四号线
			<else />
            <input type="radio" name="tube" value="地铁四号线" style="display:inline-block;margin-left:20px;"/>地铁四号线
			</if>   
			<if condition="$rent['tube'] eq '地铁五号线' " >
            <input type="radio" name="tube" value="地铁五号线" style="display:inline-block;margin-left:20px;" checked="checked"/>地铁五号线
			<else />
            <input type="radio" name="tube" value="地铁五号线" style="display:inline-block;margin-left:20px;"/>地铁五号线
			</if>                        
            </div>
        </div> 
    <!-- 价格 -->
        <div class="form-group  row">
            <label class="col-sm-1">房租价格</label>
			 <div class="col-sm-11">
            <input type="text" name="price" placeholder="房租价格" value="{$rent['price']}" class="form-control"  />
            </div> 
		</div> 
    <!-- 价格区间 -->
        <div class="form-group row">
            <label class="col-sm-1">价格区间</label>
            <div class="col-sm-11">
			<if condition="$rent['price_area'] eq '1000元以下' " >
            <input type="radio" name="price_area" value="1000元以下" style="display:inline-block;margin-left:20px;" checked="checked"/>1000元以下
			<else />
            <input type="radio" name="price_area" value="1000元以下" style="display:inline-block;margin-left:20px;"/>1000元以下
			</if> 
			<if condition="$rent['price_area'] eq '1000-1200元' " >
            <input type="radio" name="price_area" value="1000-1200元" style="display:inline-block;margin-left:20px;" checked="checked"/>1000-1200元
			<else />
            <input type="radio" name="price_area" value="1000-1200元" style="display:inline-block;margin-left:20px;"/>1000-1200元
			</if> 
			<if condition="$rent['price_area'] eq '1200-1400元' " >
            <input type="radio" name="price_area" value="1200-1400元" style="display:inline-block;margin-left:20px;" checked="checked"/>1200-1400元
			<else />
            <input type="radio" name="price_area" value="1200-1400元" style="display:inline-block;margin-left:20px;"/>1200-1400元
			</if> 
			<if condition="$rent['price_area'] eq '1400-1600元' " >
            <input type="radio" name="price_area" value="1400-1600元" style="display:inline-block;margin-left:20px;" checked="checked"/>1400-1600元
			<else />
            <input type="radio" name="price_area" value="1400-1600元" style="display:inline-block;margin-left:20px;"/>1400-1600元
			</if> 
			<if condition="$rent['price_area'] eq '1600元以上' " >
            <input type="radio" name="price_area" value="1600元以上" style="display:inline-block;margin-left:20px;" checked="checked"/>1600元以上
			<else />
            <input type="radio" name="price_area" value="1600元以上" style="display:inline-block;margin-left:20px;"/>1600元以上
			</if>               
            </div>
        </div> 	
    <!-- 面积 -->
        <div class="form-group  row">
            <label class="col-sm-1">租房面积</label>
			 <div class="col-sm-11">
            <input type="text" name="mianji" placeholder="租房面积" value="{$rent['mianji']}" class="form-control"  />
            </div> 
		</div>
    <!-- 面积区间 -->
        <div class="form-group row">
            <label class="col-sm-1">面积区间</label>
            <div class="col-sm-11">
			<if condition="$rent['mianji_area'] eq '10㎡以下' " >
            <input type="radio" name="mianji_area" value="10㎡以下" style="display:inline-block;margin-left:20px;" checked="checked"/>10㎡以下
			<else />
            <input type="radio" name="mianji_area" value="10㎡以下" style="display:inline-block;margin-left:20px;"/>10㎡以下
			</if> 
			<if condition="$rent['mianji_area'] eq '10-12㎡' " >
            <input type="radio" name="mianji_area" value="10-12㎡" style="display:inline-block;margin-left:20px;" checked="checked"/>10-12㎡
			<else />
            <input type="radio" name="mianji_area" value="10-12㎡" style="display:inline-block;margin-left:20px;"/>10-12㎡
			</if> 
			<if condition="$rent['mianji_area'] eq '12-15㎡' " >
            <input type="radio" name="mianji_area" value="12-15㎡" style="display:inline-block;margin-left:20px;" checked="checked"/>12-15㎡
			<else />
            <input type="radio" name="mianji_area" value="12-15㎡" style="display:inline-block;margin-left:20px;"/>12-15㎡
			</if> 
			<if condition="$rent['mianji_area'] eq '15-20㎡' " >
            <input type="radio" name="mianji_area" value="15-20㎡" style="display:inline-block;margin-left:20px;" checked="checked"/>15-20㎡
			<else />
            <input type="radio" name="mianji_area" value="15-20㎡" style="display:inline-block;margin-left:20px;"/>15-20㎡
			</if> 
			<if condition="$rent['mianji_area'] eq '20㎡以上' " >
            <input type="radio" name="mianji_area" value="20㎡以上" style="display:inline-block;margin-left:20px;" checked="checked"/>20㎡以上
			<else />
            <input type="radio" name="mianji_area" value="20㎡以上" style="display:inline-block;margin-left:20px;"/>20㎡以上
			</if>                
            </div>
        </div> 
		
		
    <!-- 租房户型 -->
        <div class="form-group row">
            <label class="col-sm-1">租房户型</label>
            <div class="col-sm-11">
			<if condition="$rent['huxing'] eq '一室' " >
            <input type="radio" name="huxing" value="一室" style="display:inline-block;margin-left:20px;" checked="checked"/>一室
			<else />
            <input type="radio" name="huxing" value="一室" style="display:inline-block;margin-left:20px;"/>一室
			</if> 
			<if condition="$rent['huxing'] eq '二室' " >
            <input type="radio" name="huxing" value="二室" style="display:inline-block;margin-left:20px;" checked="checked"/>二室
			<else />
            <input type="radio" name="huxing" value="二室" style="display:inline-block;margin-left:20px;"/>二室
			</if> 
			<if condition="$rent['huxing'] eq '三室' " >
            <input type="radio" name="huxing" value="三室" style="display:inline-block;margin-left:20px;" checked="checked"/>三室
			<else />
            <input type="radio" name="huxing" value="三室" style="display:inline-block;margin-left:20px;"/>三室
			</if> 
			<if condition="$rent['huxing'] eq '四室' " >
            <input type="radio" name="huxing" value="四室" style="display:inline-block;margin-left:20px;" checked="checked"/>四室
			<else />
            <input type="radio" name="huxing" value="四室" style="display:inline-block;margin-left:20px;"/>四室
			</if>		              
            </div>
        </div> 
    <!-- 租房配置 -->
        <div class="form-group row">
            <label class="col-sm-1">租房配置</label>
            <div class="col-sm-11">
			<if condition="$peizhi1 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="床" style="display:inline-block;margin-left:20px;" checked="checked"/>床
			<else />
            <input type="checkbox"  name="peizhi[]" value="床" style="display:inline-block;margin-left:20px;"/>床
			</if>
			
			<if condition="$peizhi2 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="空调" style="display:inline-block;margin-left:20px;" checked="checked"/>空调
			<else />
            <input type="checkbox"  name="peizhi[]" value="空调" style="display:inline-block;margin-left:20px;"/>空调
			</if>
			
			<if condition="$peizhi3 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="热水器" style="display:inline-block;margin-left:20px;" checked="checked"/>热水器
			<else />
            <input type="checkbox"  name="peizhi[]" value="热水器" style="display:inline-block;margin-left:20px;"/>热水器
			</if>
			
			<if condition="$peizhi4 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="冰箱" style="display:inline-block;margin-left:20px;" checked="checked"/>冰箱
			<else />
            <input type="checkbox"  name="peizhi[]" value="冰箱" style="display:inline-block;margin-left:20px;"/>冰箱
			</if>			
			<if condition="$peizhi5 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="电视" style="display:inline-block;margin-left:20px;" checked="checked"/>电视
			<else />
            <input type="checkbox"  name="peizhi[]" value="电视" style="display:inline-block;margin-left:20px;"/>电视
			</if>			
			
			<if condition="$peizhi6 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="家具" style="display:inline-block;margin-left:20px;" checked="checked"/>家具
			<else />
            <input type="checkbox"  name="peizhi[]" value="家具" style="display:inline-block;margin-left:20px;"/>家具
			</if>	
			<if condition="$peizhi7 eq 1 " >
             <input type="checkbox"  name="peizhi[]" value="独立卫生间" style="display:inline-block;margin-left:20px;" checked="checked"/>独立卫生间
			<else />
            <input type="checkbox"  name="peizhi[]" value="独立卫生间" style="display:inline-block;margin-left:20px;"/>独立卫生间
			</if>  
            </div>
        </div>
    <!-- 公共配置 -->
        <div class="form-group row">
            <label class="col-sm-1">公共配置</label>
            <div class="col-sm-11">
			<if condition="$tese1 eq 1 " >
            <input type="checkbox"  name="tese[]" value="洗衣机" style="display:inline-block;margin-left:20px;" checked="checked"/>洗衣机
			<else />
            <input type="checkbox"  name="tese[]" value="洗衣机" style="display:inline-block;margin-left:20px;"/>洗衣机
			</if>
			<if condition="$tese2 eq 1 " >
            <input type="checkbox"  name="tese[]" value="宽带" style="display:inline-block;margin-left:20px;" checked="checked"/>宽带
			<else />
            <input type="checkbox"  name="tese[]" value="宽带" style="display:inline-block;margin-left:20px;"/>宽带
			</if>
			<if condition="$tese3 eq 1 " >
            <input type="checkbox"  name="tese[]" value="阳台" style="display:inline-block;margin-left:20px;" checked="checked"/>阳台
			<else />
            <input type="checkbox"  name="tese[]" value="阳台" style="display:inline-block;margin-left:20px;"/>阳台
			</if>			
			<if condition="$tese4 eq 1 " >
            <input type="checkbox"  name="tese[]" value="厨房" style="display:inline-block;margin-left:20px;" checked="checked"/>厨房
			<else />
            <input type="checkbox"  name="tese[]" value="厨房" style="display:inline-block;margin-left:20px;"/>厨房
			</if>			
			<if condition="$tese5 eq 1 " >
            <input type="checkbox"  name="tese[]" value="游泳池" style="display:inline-block;margin-left:20px;" checked="checked"/>游泳池
			<else />
            <input type="checkbox"  name="tese[]" value="游泳池" style="display:inline-block;margin-left:20px;"/>游泳池
			</if>
			<if condition="$tese6 eq 1 " >
            <input type="checkbox"  name="tese[]" value="停车位" style="display:inline-block;margin-left:20px;" checked="checked"/>停车位
			<else />
            <input type="checkbox"  name="tese[]" value="停车位" style="display:inline-block;margin-left:20px;"/>停车位
			</if>		
			<if condition="$tese7 eq 1 " >
            <input type="checkbox"  name="tese[]" value="电梯" style="display:inline-block;margin-left:20px;" checked="checked"/>电梯
			<else />
            <input type="checkbox"  name="tese[]" value="电梯" style="display:inline-block;margin-left:20px;"/>电梯
			</if>	     
            </div>
        </div> 
		
    <!-- 租赁方式 -->
        <div class="form-group row">
            <label class="col-sm-1">租赁方式</label>
            <div class="col-sm-11">
			<if condition="$rent['zulinfs'] eq '整租' " >
            <input type="radio" name="zulinfs" value="整租" style="display:inline-block;margin-left:20px;" checked="checked"/>整租
			<else />
            <input type="radio" name="zulinfs" value="整租" style="display:inline-block;margin-left:20px;"/>整租
			</if>
			<if condition="$rent['zulinfs'] eq '合租' " >
            <input type="radio" name="zulinfs" value="合租" style="display:inline-block;margin-left:20px;" checked="checked"/>合租
			<else />
            <input type="radio" name="zulinfs" value="合租" style="display:inline-block;margin-left:20px;"/>合租
			</if>
			<if condition="$rent['zulinfs'] eq '直租' " >
            <input type="radio" name="zulinfs" value="直租" style="display:inline-block;margin-left:20px;" checked="checked"/>直租
			<else />
            <input type="radio" name="zulinfs" value="直租" style="display:inline-block;margin-left:20px;"/>直租
			</if>              
            </div>
        </div>
		
    <!-- 房子朝向 -->
        <div class="form-group row">
            <label class="col-sm-1">房子朝向</label>
            <div class="col-sm-11">
			<if condition="$rent['chaoxiang'] eq '东向' " >
            <input type="radio" name="chaoxiang" value="东向" style="display:inline-block;margin-left:20px;" checked="checked"/>东向
			<else />
            <input type="radio" name="chaoxiang" value="东向" style="display:inline-block;margin-left:20px;"/>东向
			</if>
			<if condition="$rent['chaoxiang'] eq '南向' " >
            <input type="radio" name="chaoxiang" value="南向" style="display:inline-block;margin-left:20px;" checked="checked"/>南向
			<else />
            <input type="radio" name="chaoxiang" value="南向" style="display:inline-block;margin-left:20px;"/>南向
			</if>
			<if condition="$rent['chaoxiang'] eq '西向' " >
            <input type="radio" name="chaoxiang" value="西向" style="display:inline-block;margin-left:20px;" checked="checked"/>西向
			<else />
            <input type="radio" name="chaoxiang" value="西向" style="display:inline-block;margin-left:20px;"/>西向
			</if>
			<if condition="$rent['chaoxiang'] eq '北向' " >
            <input type="radio" name="chaoxiang" value="北向" style="display:inline-block;margin-left:20px;" checked="checked"/>北向
			<else />
            <input type="radio" name="chaoxiang" value="北向" style="display:inline-block;margin-left:20px;"/>北向
			</if>

			<if condition="$rent['chaoxiang'] eq '南北向' " >
            <input type="radio" name="chaoxiang" value="南北向" style="display:inline-block;margin-left:20px;" checked="checked"/>南北向
			<else />
            <input type="radio" name="chaoxiang" value="南北向" style="display:inline-block;margin-left:20px;"/>南北向
			</if>

			<if condition="$rent['chaoxiang'] eq '东西向' " >
            <input type="radio" name="chaoxiang" value="东西向" style="display:inline-block;margin-left:20px;" checked="checked"/>东西向
			<else />
            <input type="radio" name="chaoxiang" value="东西向" style="display:inline-block;margin-left:20px;"/>东西向
			</if>          
            </div>
        </div>
    <!-- 房子装修 -->
        <div class="form-group row">
            <label class="col-sm-1">房子装修</label>
            <div class="col-sm-11">
			<if condition="$rent['zhuangxiu'] eq '毛坯' " >
            <input type="radio" name="zhuangxiu" value="毛坯" style="display:inline-block;margin-left:20px;" checked="checked"/>毛坯
			<else />
            <input type="radio" name="zhuangxiu" value="毛坯" style="display:inline-block;margin-left:20px;"/>毛坯
			</if> 
			<if condition="$rent['zhuangxiu'] eq '普通装修' " >
            <input type="radio" name="zhuangxiu" value="普通装修" style="display:inline-block;margin-left:20px;" checked="checked"/>普通装修
			<else />
            <input type="radio" name="zhuangxiu" value="普通装修" style="display:inline-block;margin-left:20px;"/>普通装修
			</if> 
			<if condition="$rent['zhuangxiu'] eq '精装修' " >
            <input type="radio" name="zhuangxiu" value="精装修" style="display:inline-block;margin-left:20px;" checked="checked"/>精装修
			<else />
            <input type="radio" name="zhuangxiu" value="精装修" style="display:inline-block;margin-left:20px;"/>精装修
			</if> 
			<if condition="$rent['zhuangxiu'] eq '豪华装修' " >
            <input type="radio" name="zhuangxiu" value="豪华装修" style="display:inline-block;margin-left:20px;" checked="checked"/>豪华装修
			<else />
            <input type="radio" name="zhuangxiu" value="豪华装修" style="display:inline-block;margin-left:20px;"/>豪华装修
			</if>         
            </div>
        </div>

    <!-- 房子楼层 -->
        <div class="form-group  row">
            <label class="col-sm-1">房子楼层</label>
			 <div class="col-sm-11">
            <input type="text" name="floor" placeholder="房子楼层" value="{$rent['floor']}" class="form-control"  />
            </div> 
		</div> 
      <style>
      div.imglist{ margin:0 auto; width:90%;margin-left:160px; overflow:hidden; z-index:9999999;} 
      div.imglist div{ float:left; margin:4px;padding:2px; width:160px; background-color:#dbdbdb;list-style-type: none; position:relative;} 
      div.imglist div img{ display:block; width:156px; height:156px;} 
      div.imglist div span{ position:absolute;top:2px;right:2px; display:block; width:30px; height:30px; line-height:30px; background:url("Public/images/cha.png") no-repeat;} 
      </style>		
    <!-- 首页大图片 -->
        <div class="form-group row">
            <label class="col-sm-1">首页视频图片</label>
            <div class="col-sm-11">
           <input type="file" name="pic[]" class="form-control" >
            </div>
        </div>
        <div class="form-group row">
		<div class="imglist"> 
        <?php
        $items=$rent['imgurl'];  
        $arr = explode("|",$items);
        for($i=0;$i<count($arr)-1;$i++){
        echo "<div class='del_1' data-url='$arr[$i]'><img src='Public/$arr[$i]'  alt=''/><span></span></div>";
        }
        ?>
		</div>
        </div>
    <!-- 首页大图片推荐 -->
        <div class="form-group row">
            <label class="col-sm-1">首页视频推荐</label>
            <div class="col-sm-11">
			<if condition="$rent['recommend'] eq 1 " >
			<input type="radio" name="recommend" value="1" style="display:inline-block;margin-left:20px;" checked="checked" />否
			<else />
			<input type="radio" name="recommend" value="1" style="display:inline-block;margin-left:20px;" />否
			</if>
			<if condition="$rent['recommend'] eq 2 " >
			<input type="radio" name="recommend" value="2" style="display:inline-block;margin-left:20px;"  checked="checked"/>是
			<else />
			<input type="radio" name="recommend" value="2" style="display:inline-block;margin-left:20px;" />是
			</if>    
            </div>
        </div>
		
    <!-- 列表图片 -->
        <div class="form-group row">
            <label class="col-sm-1">房源列表图片</label>
            <div class="col-sm-11">
           <input type="file" name="piclist[]" class="form-control" multiple="multiple">
            </div>
        </div>
        <div class="form-group row">
		<div class="imglist"> 
        <?php
        $items=$rent['imgurl_list'];  
        $arr = explode("|",$items);
        for($i=0;$i<count($arr)-1;$i++){
        echo "<div class='del_2' data-url='$arr[$i]'><img src='Public/$arr[$i]'  alt=''/><span></span></div>";
        }
        ?>
		</div>
        </div>
		
    <!-- 内页公共区图片 -->
        <div class="form-group row">
            <label class="col-sm-1">内页公共区图</label>
            <div class="col-sm-11">
           <input type="file" name="picct[]" class="form-control" multiple="multiple">
            </div>
        </div>
        <div class="form-group row">
		<div class="imglist"> 
        <?php
        $items=$rent['imgurl_ct'];  
        $arr = explode("|",$items);
        for($i=0;$i<count($arr)-1;$i++){
        echo "<div class='del_3' data-url='$arr[$i]'><img src='Public/$arr[$i]'  alt=''/><span></span></div>";
        }
        ?>
		</div>
        </div>
		
		
    <!-- 房间分身 -->
        <div class="form-group  row">
            <label class="col-sm-1">房间分身</label>
			 <div class="col-sm-11">
	   <if condition="$fenrenta eq 1 " >
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=update&id={$ida}">A房修改</a>
	   <else />
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=add&rel_id={$rent['id']}&fanghao=房间A">A房新增</a>
	   </if>
	   &nbsp;&nbsp;&nbsp; 
	   <if condition="$fenrentb eq 1 " >
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=update&id={$idb}">B房修改</a>
	   <else />
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=add&rel_id={$rent['id']}&fanghao=房间B">B房新增</a>
	   </if>
	   &nbsp;&nbsp;&nbsp; 
	   <if condition="$fenrentc eq 1 " >
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=update&id={$idc}">C房修改</a>
	   <else />
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=add&rel_id={$rent['id']}&fanghao=房间C">C房新增</a>
	   </if>
	   &nbsp;&nbsp;&nbsp; 
	   <if condition="$fenrentd eq 1 " >
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=update&id={$idd}">D房修改</a>
	   <else />
	   <a href="/hfd/manager.php?m=Admin&c=Fenrent&a=add&rel_id={$rent['id']}&fanghao=房间D">D房新增</a>
       </if>
	   </div> 
	   </div> 

        <div class="form-group">
        <label for="post-content">正文内容</label>
        <script id="post-content" name="content" type="text/plain">{$rent.content|htmlspecialchars_decode}</script>
        </div>

  <button type="submit" class="btn btn-default">提交</button>
    </form>
</div>
<!-- 配置文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('post-content',{
        toolbars: [
            ['fullscreen', 'source', 'undo', 'redo','bold', 'italic', 'underline','fontborder', 'strikethrough', '|','simpleupload', 'insertimage','attachment','emotion','link','unlink', '|', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote','searchreplace', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'],
            ['inserttable','insertrow', 'insertcol','mergeright', 'mergedown','deleterow', 'deletecol','splittorows','splittocols', 'splittocells','deletecaption','inserttitle', 'mergecells', 'deletetable','insertparagraphbeforetable', 'paragraph','fontsize','fontfamily']
        ],
        initialFrameHeight:300,
        zIndex:100
    });
</script>
<include file="Public/footer" />
<script type="text/javascript">
$(function(){
    $(".del_1").click(function(){
         var delurl = $(this).data("url");
		 $(this).remove();
         var id = GetQueryString("id");
         $.ajax({
            type:"POST",
            url:"{:U('Admin/Rent/delarr_1')}",
            data:{
                id:id,
                url:delurl
            },
            success:function(data){
                
            },
            error:function(){
                alert("error");
            }
         })
    });
});

$(function(){
    $(".del_2").click(function(){
         var delurl = $(this).data("url");
		 $(this).remove();
         var id = GetQueryString("id");
         $.ajax({
            type:"POST",
            url:"{:U('Admin/Rent/delarr_2')}",
            data:{
                id:id,
                url:delurl
            },
            success:function(data){

            },
            error:function(){
                alert("error");
            }
         })
    });
});

$(function(){
    $(".del_3").click(function(){
         var delurl = $(this).data("url");
		 $(this).remove();
         var id = GetQueryString("id");
         $.ajax({
            type:"POST",
            url:"{:U('Admin/Rent/delarr_3')}",
            data:{
                id:id,
                url:delurl
            },
            success:function(data){

            },
            error:function(){
                alert("error");
            }
         })
    });
});


function GetQueryString(name){
    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if(r!=null)return  unescape(r[2]); return null;
}
</script>